package com.aruba.paging.entity;

import java.util.Objects;

/**
 * Created by aruba on 2021/9/17.
 */
public class Movie {
    //唯一id
    public int id;
    //标题
    public String title;
    //图片地址
    public String cover;
    //评分
    public String rate;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Movie movie = (Movie) o;
        return id == movie.id && title.equals(movie.title) && cover.equals(movie.cover) && rate.equals(movie.rate);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, title, cover, rate);
    }

    @Override
    public String toString() {
        return "Movie{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", cover='" + cover + '\'' +
                ", rate='" + rate + '\'' +
                '}';
    }
}
